import request from '@/utils/request';





export function stuConfirm(id) {
  return request({
    url: `/dormitory/newRecord/stuConfirm/${id}`,
    method: 'POST'
  });
}

export function exportDept(params = {}) {
  return request({
    url: "/dormitory/dms-dormitory/exportDept",
    method: "get",
    params
  });
}

export function exportFdy(params = {}) {
  return request({
    url: "/dormitory/dms-dormitory/exportFdy",
    method: "get",
    params
  });
}



export function getStuLog(stuNo) {
  return request({
    url: "/dormitory/srs-dormitory-student/getStuLog/" + stuNo,
    method: "GET"
  });
}

export function getOwnLog() {
  return request({
    url: "/dormitory/srs-dormitory-student/getOwnLog",
    method: "GET"
  });
}

export function listXw(params) {
  return request({
    url: "/dormitory/srs-dormitory-student/listXw",
    method: "GET",
    params
  });
}

export function listJwc(params) {
  return request({
    url: "/dormitory/srs-dormitory-student/listJwc",
    method: "GET",
    params
  });
}


export function listFdy(params) {
  return request({
    url: "/dormitory/srs-dormitory-student/listFdy",
    method: "GET",
    params
  });
}

// 查询宿舍学生关联列表
export function listStudent(query) {
  return request({
    url: '/dormitory/srs-dormitory-student/list',
    method: 'get',
    params: query
  })
}

// 查询宿舍学生关联详细
export function getStudent(id) {
  return request({
    url: '/dormitory/srs-dormitory-student/' + id,
    method: 'get'
  })
}

// 新增宿舍学生关联
export function addStudent(data) {
  return request({
    url: '/dormitory/srs-dormitory-student/add',
    method: 'post',
    data: data
  })
}

// 修改宿舍学生关联
export function updateStudent(data) {
  return request({
    url: '/dormitory/srs-dormitory-student/update',
    method: 'post',
    data: data
  })
}

// 删除宿舍学生关联
export function delStudent(id) {
  return request({
    url: '/dormitory/srs-dormitory-student/delete/' + id,
    method: 'post'
  })
}
